home *** CD-ROM | disk | FTP | other *** search
- //-------------------------------------------------------------------//
- // union
-
- // Syntax: union ( A , B )
-
- // Description:
-
- // The union function returns a vector set that is the union of the
- // two sets A, and B.
-
- // See Also: complement, intersection, set
-
- //-------------------------------------------------------------------//
-
- union = function ( A, B )
- {
- if (A.n == 0 && B.n == 0) { return []; }
- return set ( [ A[:] ; B[:] ] )
- };
-